package com.makejl.daoImpl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.makejl.dao.LoginDAO;
import com.makejl.domain.LoginUser;

public class LoginDAOImpl extends HibernateDaoSupport implements LoginDAO {

	public LoginUser read() {
		// this.getSession().createQuery(sql);
//		return (LoginUser) getSession().createQuery("from LoginUser").list().get(0);
		return (LoginUser) getSession().createQuery("from MakeJL_User").list().get(0);
	}

	public void save(LoginUser loginUser) {
		this.getHibernateTemplate().save(loginUser);
	}

}
